odhcpd: add support for "ignore"
authorDavid Härdeman <[email protected]>
Sun, 9 Nov 2025 17:36:03 +0000 (18:36 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 11 Nov 2025 07:43:07 +0000 (08:43 +0100)
commitb6ade2ebc51419b6c4c9dc95afe35a215971ba70
treef3c770928a38521aa018fcae5d7e0428219f7927
parent77f9a0dad51796c1ca873deef876fb9644cd98ef
odhcpd: add support for "ignore"

This is inspired by @Kasoo's work in PR #234, but slightly different.

The "ip" option now takes "ignore" as a value , but it'll only disable
DHCPv4 for a matching client.

Similarly, the "hostid" option now also understands "ignore", which will
disable DHCPv6 for a matching client.

Of course, this is all based on client-reported MAC
addresses/DUIDs/client IDs/etc, so it's not actually a security feature.

Closes: https://github.com/openwrt/odhcpd/pull/234
Closes: https://github.com/openwrt/odhcpd/issues/198
Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/303
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
README.md
src/config.c
src/dhcpv4.c
src/dhcpv6-ia.c
src/odhcpd.h